<extend name="Common@Layout:hui-admin" />
<block name="title"><title>Administator管理后台</title></block>
<block name="style">
</block>

<block name="main">
<div class="pd-20">
	<form action="{:u('edit_post')}" method="post" class="form form-horizontal validator_form close-dialog" id="form-article-add">
		<div class="row cl">
			<label class="form-label col-3"><span class="c-red">*</span>标题：</label>
				<div class="formControls col-6">
				  	<input type="text" class="input-text" value="{$info.title}" placeholder="" name="title"  data-rule="标题:required;">
				</div>
			<div class="col-3"> </div>
		</div>
		<div class="row cl">
			<label class="form-label col-3"><span class="c-red">*</span>开始时间：</label>
				<div class="formControls col-5">
				  	<input type="text" class="input-text mini-time" style="width:120px;" value="{$info.start_time}" placeholder="" name="start_time"  data-rule="开始时间:required;">
				</div>
			<div class="col-4"> </div>
		</div>
		<div class="row cl">
			<label class="form-label col-3"><span class="c-red">*</span>结束时间：</label>
				<div class="formControls col-5">
				  	<input type="text" class="input-text mini-time" style="width:120px;" value="{$info.end_time}" placeholder="" name="end_time"  data-rule="结束时间:required;">
				</div>
			<div class="col-4"> </div>
		</div>
		<div class="row cl">
			<label class="form-label col-3"><span class="c-red">*</span>班级类型：</label>
			<div class="formControls col-5">
			  <span class="select-box inline">
				<select name="type" class="select">
					<option value="1" <if condition="$info[type] eq 1">selected</if>>学年（半年或一年）</option>
					<option value="2" <if condition="$info[type] eq 2">selected</if>>自定义</option>
				</select>
			</span>
			</div>
			<div class="col-4"> </div>
		</div>
	  	<div class="row cl">
			<label class="form-label col-3">备注：</label>
			<div class="formControls col-8">
	  			<textarea name="desc" cols="" rows="" class="textarea"  placeholder="说点什么...最少输入10个字符" onKeyUp="textarealength(this,100)">{$info.desc}</textarea>
			</div>
			<div class="col-1"> </div>
	  	</div>
	  	<div class="row cl">
	    	<div class="col-9 col-offset-3">
	    		<input type="hidden" name="id" value="{$info['id']}">
	      		<input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
	    	</div>
	  	</div>
	</form>
</div>
</block>

<block name="script">
<script type="text/javascript">
$(function(){
	$('.skin-minimal input').iCheck({
		checkboxClass: 'icheckbox-blue',
		radioClass: 'iradio-blue',
		increaseArea: '20%'
	});
	
	$('.mini-time').datepicker({autohide: true});

});
</script>
</block>